
// 下载资源二进制流文件
const downloadMaterial = {
    uri: '',
    method: 'get',
    responseType: 'blob'
}

// 获取上传图片token   
/**
 * https://wiki.3ren.cn/pages/viewpage.action?pageId=3255213
 */
const getUploadToken = {
    uri: '/upload-center/web/token/get',
    queries: null,
    method: 'post',
    data: {
        moduleType: true, // 模块名：      tempfile ｜ material ｜ user 
        publicRead: true // 对应只读空间： true     ｜ true     ｜ true
    },
    noHttpCache: true
}

// 获取分片上传token
const getChunkUploadToken = {
    uri: '/upload-center/web/token/slice/get',
    queries: null,
    method: 'post',
    data: {
        moduleType: true,
        publicRead: true
    },
    noHttpCache: true
}


export default {
    downloadMaterial,
    getUploadToken,
    getChunkUploadToken
}
